package com.eastfair.point.business.gateway;

import cn.hutool.core.collection.CollectionUtil;
import com.eastfair.core.point.PointBuilder;
import com.eastfair.point.PointKeyDefinition;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 加载用户权限事件埋点 业务数据
 */
@Data
public class BusinBalckPoint implements PointBuilder, Serializable {
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;


    /**
     * ip
     */
    @ApiModelProperty(value = "ip")
    private String ip;


    /**
     * 身份证
     */
    @ApiModelProperty(value = "身份证")
    private String idCard;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号集合")
    private String mobile;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱集合")
    private String email;

    /**
     * 限制时间起
     */
    @ApiModelProperty(value = "限制时间起")
    private LocalDateTime startTime;

    /**
     * 限制时间止
     */
    @ApiModelProperty(value = "限制时间止")
    private LocalDateTime endTime;

    /**
     * 埋点名称
     */
    private String pointName;

    @Override
    public String getPointName() {
        return PointKeyDefinition.GATEWAY_BLACK;
    }
}
